import Fenli from '@/views/fenli.vue'
import Gu from '@/views/gu.vue'
import Index from '@/views/index.vue'
import Me from '@/views/me.vue'
import Sy from '@/views/sy.vue'
import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/index',
      component: Index,
      children: [
        {
          path: 'fenli',
          component: Fenli,
        },
        {
          path: 'gu',
          component: Gu,
        },
        {
          path: 'me',
          component: Me,
        },
        {
          path: 'sy',
          component: Sy,
        },
      ]
    },
  ],
})

export default router
